package com.n9.qq.android.firendlist;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

/**
 * @author ice
 * @since 2019/2/21 18:53
 */
public class GetSimpleOnlineFriendInfoReq extends JceStruct {

    public byte cSrcType = 0;
    public byte ifShowTermType = 0;
    public byte ifgetFriendVideoAbi = 0;
    public byte isReqCheckIn = 0;
    public byte[] stReqCheckIn = null;
    public long uin = 0L;
    public long version = 0L;

    public GetSimpleOnlineFriendInfoReq() {
    }

    public GetSimpleOnlineFriendInfoReq(long var1, byte var3, byte var4, byte[] var5, byte var6, long var7, byte var9) {
        this.uin = var1;
        this.ifgetFriendVideoAbi = var3;
        this.isReqCheckIn = var4;
        this.stReqCheckIn = var5;
        this.ifShowTermType = var6;
        this.version = var7;
        this.cSrcType = var9;
    }

    @Override
    public void readFrom(JceInputStream var1) {
        this.uin = var1.read(this.uin, 0, true);
        this.ifgetFriendVideoAbi = var1.read(this.ifgetFriendVideoAbi, 1, false);
        this.isReqCheckIn = var1.read(this.isReqCheckIn, 2, false);
        if (stReqCheckIn == null) {
            stReqCheckIn = new byte[0];
        }

        this.stReqCheckIn = var1.read(stReqCheckIn, 3, false);
        this.ifShowTermType = var1.read(this.ifShowTermType, 4, false);
        this.version = var1.read(this.version, 5, false);
        this.cSrcType = var1.read(this.cSrcType, 6, false);
    }

    @Override
    public void writeTo(JceOutputStream var1) {
        var1.write(this.uin, 0);
        var1.write(this.ifgetFriendVideoAbi, 1);
        var1.write(this.isReqCheckIn, 2);
        if (this.stReqCheckIn != null) {
            var1.write(this.stReqCheckIn, 3);
        }
        var1.write(this.ifShowTermType, 4);
        var1.write(this.version, 5);
        var1.write(this.cSrcType, 6);
    }

}
